<?php

/**
 * querybuilder
 *
 * Được sinh mã tự động
 *
 * @version $Rev:$
 * @license Baotq Daniel Chivas
 */
class Generate_Model_Querybuilder extends Zend_Db_Table_Abstract
{
    public function __construct($config = array())
    {
        parent::__construct($config);
    }
    
    public function getAllTable(){
        $this->_db = Zend_Db_Table::getDefaultAdapter();
        $stm = $this->_db->query("SHOW TABLES");
        $listTable = $stm->fetchAll();
        return $listTable;
    }
    
    public function getAllColumn($table){
        $this->_db = Zend_Db_Table::getDefaultAdapter();
        $stm = $this->_db->query("show COLUMNS from `".$table."`");
        return $stm;
    }
}

